# #创建函数，求n1到n2n3和的和
# def a(n1,n2):
#     sum=0
#     for sum1 in range(n1,n2+1):
#         sum+=sum1
#     return sum
# print(a(2,3))
# #创建函数，设置两个默认值
# def b(name,age,sex='男',clas='2'):
#     print(f'姓名：{name},年龄：{age},性别:{sex},班级:{clas}')
# b('张三',23,clas=3)
# #创建函数，用到**和*!!!!!!!!
# def c(*args,**keys):
#      print(*args,**keys)
#
# c(1,1,2,3,4,name='zhang',sex=23)
#解包
def d(name,age):
    print(name,age)
a=['张三',12]
d(*a)

age,name=a
d(name,age)